package org.jeecg.modules.outOrder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 出库单
 * @Author: jeecg-boot
 * @Date: 2024-10-10
 * @Version: V1.0
 */
@ApiModel(value = "out_order对象", description = "出库单")
@Data
@Accessors(chain = true)
@TableName("out_order")
public class OutOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 订单号
     */
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String outOrderCode;
    /**
     * 出库日期
     */
    @Excel(name = "出库日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出库日期")
    private Date outOrderTime;
    /**
     * 品番类型
     */
    @Dict(dicCode = "goods_type")
    @Excel(name = "品番类型", width = 15, dicCode = "goods_type")
    @ApiModelProperty(value = "品番类型")
    private Integer goodsType;
    /**
     * 备注信息
     */
    @Excel(name = "备注信息", width = 15)
    @ApiModelProperty(value = "备注信息")
    private String remarks;
    /**
     * 出库状态
     * 01：创建完成/未发布
     * 02：发布完成/已发布
     * 03：领取完成/正在执行(涉及到理货员与叉车司机同时进行的入库单时,有一个人领任务了就是领取完成,全部执行任务结束后更改状态至04)
     * 04：执行完成/任务已完成
     * 99：已被删除
     */
    @Dict(dicCode = "out_status")
    @Excel(name = "出库状态", width = 15, dicCode = "out_status")
    @ApiModelProperty(value = "出库状态")
    private String status;

    @TableField(exist = false)
    @Dict(dicCode = "order_task_status")
    private String taskStatus;
    /**
     * 发布时间
     */
    @Excel(name = "发布时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布时间")
    private Date releaseTime;
    /**
     * 执行人员（发布后生成）
     * 01：理货员
     * 02：叉车司机
     * 11：理货员和叉车司机
     */
    @Excel(name = "执行人员", width = 15)
    @ApiModelProperty(value = "执行人员")
    private String executeStaff;
    /**
     * 理货员
     */
    @Excel(name = "理货员", width = 15)
    @ApiModelProperty(value = "理货员")
    private String tally;
    /**
     * 理货工作站编码
     */
    @Excel(name = "理货工作站编码", width = 15)
    @ApiModelProperty(value = "理货工作站编码")
    private String stationCode;
    /**
     * 理货工作站名称
     */
    @TableField(exist = false)
    @Excel(name = "理货工作站名称", width = 15)
    private String stationName;
    /**
     * 理货领取时间
     */
    @Excel(name = "理货领取时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "理货领取时间")
    private Date tallyReceive;
    /**
     * 理货完成时间
     */
    @Excel(name = "理货完成时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "理货完成时间")
    private Date tallyTime;
    /**
     * 叉车司机
     */
    @Excel(name = "叉车司机", width = 15)
    @ApiModelProperty(value = "叉车司机")
    private String driver;
    /**
     * 上架领取时间
     */
    @Excel(name = "上架领取时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上架领取时间")
    private Date driverReceive;
    /**
     * 上架完成时间
     */
    @Excel(name = "上架完成时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上架完成时间")
    private Date driverTime;
    /**
     * 换装人员
     */
    @Excel(name = "换装人员", width = 15)
    @ApiModelProperty(value = "换装人员")
    private String convertBy;
    /**
     * 换装完成时间
     */
    @Excel(name = "换装完成时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "换装完成时间")
    private Date convertTime;
    /**
     * 复核人员
     */
    @Excel(name = "复核人员", width = 15)
    @ApiModelProperty(value = "复核人员")
    private String reviewBy;
    /**
     * 复核完成时间
     */
    @Excel(name = "复核完成时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "复核完成时间")
    private Date reviewTime;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

}
